﻿using HarmonyLib;
using RimWorld;
using System.Collections.Generic;
using Verse;

namespace SuperMe
{
    public class SuperMePatch_Game
    {
        static bool enable_print_stat_def = false;

        [HarmonyPatch(typeof(Game))]
        [HarmonyPatch("ExposeSmallComponents")]
        public class Patch_Game_ExposeSmallComponents
        {
            [HarmonyPostfix]
            private static void MyPostfix(Game __instance)
            {
                SuperMe_DataMgr.InitDef();
                if (enable_print_stat_def)
                {
                    SuperMe_DataMgr.PrintStatDef();
                }
                SuperMe_StatFactor.CreateFactor();
                SuperMe_DataMgr.PrintAllParts();
            }
        }
    }
}
